<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: cgq
  Date: 2018/2/4
  Time: 17:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>选课</title>
</head>
<body>
<script type="text/javascript">

    function save(){
        $("#checkClass").submit();
    }



</script>

<table border="1">
    <%if(request.getSession().getAttribute("msg")!=null){%>
    <%=request.getSession().getAttribute("msg")%>
    <%}%>
    <tr>
        <td>课程号</td>
        <td>课程名</td>
        <td>课程属性</td>
        <td>选课</td>
    </tr>

    <c:forEach var="courseList" items="${courseList}">
        <tr>

            <td>${courseList.cno}</td>
            <td>${courseList.cname}</td>
            <td>${courseList.cattribute}</td>
            <td><a href="/course/checkClass.shtml?cno=${courseList.cno}" ><input  type="hidden" name="select" value="${courseList.cno}">选课</a></td>

        </tr>
    </c:forEach>

</table>
</body>

</html>
